version 14.1
set more off

***************************************************************************************************
*THIS FILE DOCUMENTS AND GENERATES PLOTS AND TABLES FOR WASEEM (2019) RESTAT
***************************************************************************************************

/* PRELIMINARIES */

global 			project_do "C:\Do"							//directory for do files									
global 			project_data "C:\Data"						//directory for data files
global 			project_graph "C:\Output"			  		//directory for output charts
		
/* FIGURE I (Tax Variation) */

qui				run "$project_do\TaxChanges_SE.do"
qui				run "$project_do\TaxChanges_WE.do"

/* FIGURE II (Self-Employment Income Response)*/
	
qui				run "$project_do\BSP_SE_500.do"
qui				run "$project_do\Evasion Estimation Plot SE"

/* FIGURE III (Wage Income Response)*/

qui				run "$project_do\BSP_WE_700.do"
qui				run "$project_do\Evasion Estimation Plot WE"

/* FIGURE A.I (Tax Schedules)*/
	
qui				run "$project_do\Tax Schedule -- SE"
qui				run "$project_do\Tax Schedule -- WE"

/* FIGURE A.II (Filing Probability)*/
	
qui				run "$project_do\BSP_SE_500_FilingProbability"

/* FIGURE A.III (Self-Employment Income Response (Balanced Panel))*/
	
qui				run "$project_do\Evasion Estimation Plot SE BP"

/* FIGURE A.IV (Self-Employment Income Trend)*/
	
qui				run "$project_do\DD SE Plot"

/* FIGURE A.V (Earnings Growth Rate Needed to Hit the New Exemption Cutoff)*/
	
qui				run "$project_do\BSP_SE_500_BunchingCutoff"

/* FIGURE A.VI (Elasticity Implied by the Self-Employment Income Response)*/
	
qui				run "$project_do\BSP_SE_500_Elasticity"

/* FIGURE A.VII (Line Items Response)*/
	
qui				run "$project_do\BSP_SE_500_LineItems.do"

/* FIGURE A.VIII (Line Items Response – 2009)*/
/* FIGURE A.IX (Line Items Response – Placebo)*/
	
qui				run "$project_do\LineItemsResponse_DDStyle.do"

/* FIGURE A.X (Applicability of the Evasion Rates)*/
	
qui				run "$project_do\BSP_SE_500_withCDF.do"
qui				run "$project_do\BSP_WE_700_withCDF.do"

/* FIGURE A.XI (Heterogeneity in Self-Employment Income Response)*/
	
qui				run "$project_do\BSP_SE_500 Heterogeneity Size.do"
qui				run "$project_do\BSP_SE_500 Heterogeneity Others.do"

/* TABLE I (Self-Employment Income Response)*/
	
qui				run "$project_do\Table Earnings Response SE -- Within SE BP"

/* TABLE II (Wage Income Response)*/
	
qui				run "$project_do\Table Earnings Response WE"

/* TABLE III (Evasion Rate of Self-Employment Income)*/
	
qui				run "$project_do\Table Evasion Estimates SE"

/* TABLE A.I (Filing Compliance)*/
	
qui				run "$project_do\Table Filing Compliance"

/* TABLE A.II (Summary Statistics)*/
	
qui				run "$project_do\Summary Statistics"

/* TABLE A.III (Switching Probability)*/
	
qui				run "$project_do\Table Switching Porbability Across Years"

/* TABLE A.IV (Self-Employment Income Response (Complete Panel))*/
	
qui				run "$project_do\Table Earnings Response SE -- Within SE"

/* TABLE A.V (Self-Employment Income Response – Before-After Research Design)*/
	
qui				run "$project_do\Table Earnings Response SE TS"

/* TABLE A.VI (Robustness of the Self-Employment Income Response Estimates)*/
	
qui				run "$project_do\Table Earnings Response SE Robustness"

/* TABLE A.VII (Self-Employment Income Response – Placebo Specification)*/
	
qui				run "$project_do\Table Earnings Response SE Placebo"

/* TABLE A.VIII (Self-Employment Income Response –With Controls for Mean-Reversion)*/
	
qui				run "$project_do\Table Earnings Response SE -- Within SE Mean Reversion"

/* TABLE A.IX (Robustness of the Wage Income Response Estimates)*/
	
qui				run "$project_do\Table Earnings Response WE Robustness"

/* TABLE A.X (Evasion Rate of Self-Employment Income)*/
	
qui				run "$project_do\Table Evasion Estimates SE Appendix"

/* TABLE A.XI (Heterogeneity in Self-Employment Income Response (Size))*/
	
qui				run "$project_do\Table Earnings Response SE -- Heterogeneity Size"

/* TABLE A.XII (Heterogeneity in Self-Employment Income Response)*/
	
qui				run "$project_do\Table Earnings Response SE -- Heterogeneity Others"

/* TABLE A.XIII (Heterogeneity in Self-Employment Income Response (Age))*/
	
qui				run "$project_do\Table Earnings Response SE -- Heterogeneity Age"

